package com.swmaestro.twar.model;

import org.json.JSONException;
import org.json.JSONObject;

public class Choice {

	public String title;
	public String image_url;
	public Integer total;	
	public String like_url;
	
	//
	///
	////
	
	private static final String _KEY_TITLE = "title";
	private static final String _KEY_IMAGE_URL = "image_url";
	private static final String _KEY_TOTAL = "total";
	private static final String _KEY_LIKE_URL = "like";
	
	public Choice(JSONObject jo) throws JSONException {
		this.title = jo.getString(_KEY_TITLE);
		this.image_url = jo.getString(_KEY_IMAGE_URL);
		this.total = jo.getInt(_KEY_TOTAL);
		this.like_url = jo.getString(_KEY_LIKE_URL);
	}
}
